package NProfessor;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import java.awt.GridLayout;

public class Encapsulation extends JPanel{

	private JLabel nlb1;
	private JLabel nlb5;
	private JLabel nlb6;
	private JLabel nlb7;
	private JLabel nlb8;
	private JLabel nlb2;
	private JLabel nlb3;
	private JLabel nlb4;
	private JLabel nlb11;
	private JLabel nlb51;
	private JLabel nlb61;
	private JLabel nlb12;
	private JLabel nbl13;
	private JLabel nlb71;
	private JLabel nbl14;
	private JLabel nlb81;
	private JButton btn;
	private JLabel label;
	private JLabel label_1;
	private JLabel label_2;
	private JLabel label_3;
	
	
	public Encapsulation() {
		
		setLayout(new BorderLayout(0,0));
		
		// * TOP 
		
		maketopPanel();
		
		// * CENTER  --- 현재 Empty
		
		makecenterPanel();
		
		// * BOTTOM
		
		makebottomPanel();
		
		// * BUTTON
		
		
			
		
	}
	
	public void maketopPanel(){
		
		JPanel top = new JPanel();
		add(top, BorderLayout.CENTER);
		top.setLayout(new GridLayout(0, 5, 0, 0));
		
		nlb1 = new JLabel("교수 번호");
		top.add(nlb1);
		
		nlb2 = new JLabel("등록 일자");
		top.add(nlb2);
		
		nlb3 = new JLabel("이름");
		top.add(nlb3);
		
		nlb4 = new JLabel("전화 번호");
		top.add(nlb4);
		
		label = new JLabel("");
		top.add(label);
		
		nlb11 = new JLabel(" ");
		top.add(nlb11);
		
		nlb12 = new JLabel(" ");
		top.add(nlb12);
		
		nbl13 = new JLabel(" ");
		top.add(nbl13);
		
		nbl14 = new JLabel(" ");
		top.add(nbl14);
		
		label_1 = new JLabel("");
		top.add(label_1);
		
		nlb5 = new JLabel("주소");
		top.add(nlb5);
		
		nlb6 = new JLabel("사무실");
		top.add(nlb6);
		
		nlb7 = new JLabel("담당학과");
		top.add(nlb7);
		
		nlb8 = new JLabel("담당과목");
		top.add(nlb8);
		
		label_2 = new JLabel("");
		top.add(label_2);
		
		nlb51 = new JLabel(" ");
		top.add(nlb51);
		
		nlb61 = new JLabel(" ");
		top.add(nlb61);
		
		nlb71 = new JLabel(" ");
		top.add(nlb71);
		
		nlb81 = new JLabel(" ");
		top.add(nlb81);
		
		label_3 = new JLabel("");
		top.add(label_3);
	}

	public void makecenterPanel(){
		
	}
	public void makebottomPanel(){
		
		JPanel bottom = new JPanel();
		add(bottom, BorderLayout.SOUTH);
		
		btn = new JButton("확인");
		bottom.add(btn);
	}
	
	public void makeButton(JPanel bottom, JButton JB, String Jack){
		JButton po = new JButton();
		bottom.add(po);
		
		
	}
	
	
}
